using System;
using CStock;
namespace CStock
{
	/// <summary>
	/// Summary description for Transaction.
	/// </summary>
	public class Transaction : ITransaction
	{
		//current values
		private string shareNameOrMoneyTransfer;
		private double shareQuote;

		private double transactionCosts;
		//private double currentTradedSum;
		private double moneyAvailable ;
		
		private double portfolioValue ;

		
		private double bankingCosts ;
		private double totalTransactionCosts ;
		
		private int numberOfTradedShares; // can be positive or negative
		private int numberOfAvailableShares ;


		public Transaction()
		{
			
		}
		//current values
		public string ShareNameOrMoneyTransfer
		{
			get
			{
				return this.shareNameOrMoneyTransfer;
			}
			set
			{
				shareNameOrMoneyTransfer = value;
			}
		
		}
		public double ShareQuote
		{
			get
			{
				return this.shareQuote;
			}
			set
			{
				shareQuote = value;
			}
		
		}
		public double TransactionCosts
		{
			get
			{
				return this.transactionCosts;
			}
			set
			{
				transactionCosts = value;
			}
		
		}
		public double MoneyAvailable
		{
			get
			{
				return this.moneyAvailable;
			}
			set
			{
				moneyAvailable = value;
			}
		
		}
		public double PortfolioValue
		{
			get
			{
				return this.portfolioValue;
			}
			set
			{
				portfolioValue = value;
			}
		
		}
		public double BankingCosts
		{
			get
			{
				return this.bankingCosts;
			}
			set
			{
				bankingCosts = value;
			}
		
		}
		public double TotalTransactionCosts
		{
			get
			{
				return this.totalTransactionCosts;
			}
			set
			{
				totalTransactionCosts = value;
			}
		
		}
		
		public int Number
		{
			get
			{
				return this.numberOfTradedShares;
			}
			set
			{
				numberOfTradedShares = value;
			}
		
		}	
		public int NumberOfShares
		{
			get
			{
				return this.numberOfAvailableShares;
			}
			set
			{
				numberOfAvailableShares = value;
			}
		
		}

	}
}
